package cn.kongwg.boot.controller;

import cn.kongwg.boot.async.AsyncTest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author kongwg
 * @create 2021-03-24 9:44
 */
@RestController
public class HelloController {

    @Autowired
    private AsyncTest asyncTest;

    @RequestMapping("/hello")
    public String hello() throws InterruptedException {
        asyncTest.hello();
        return "seccess";
    }
}
